<div class="container clearfix">
  
  {{$this->Html->link(__('返回上级分类'),array($parent_cid))}}
  
	<table>
	
	{{loop $itemcats $key $cat}}
			{{if $key%5==0}}
				<tr>
			{{/if}}
			<td>
                            {{if $cat['TaobaoCate']['cid']}}
				{{$this->Html->link($cat['TaobaoCate']['name'],array('action'=>'products',$cat['TaobaoCate']['cid']))}}
                            {{else}}
                                {{$cat['TaobaoCate']['name']}}
                            {{/if}}

                            {{if $cat['TaobaoCate']['left']+1!=$cat['TaobaoCate']['right']}}
				 {{$this->Html->link(__("Sub Cate"),array($cat['TaobaoCate']['id']))}}
                            {{/if}}
			</td>
			{{if $key%5==4}} 
				</tr>
			{{/if}}
		{{/loop}}
		{{if $key%5!=4}} </tr>{{/if}}
	
	<!-- 
		{{loop $itemcats $key $cat}}
			{{if $key%5==0}}
				<tr>
			{{/if}}
			<td>{{if $cat['is_parent']=="true"}}
				{{$this->Html->link($cat['name'],array('action'=>'products',$cat['cid']))}}  {{$this->Html->link(__("Sub Cate"),array($cat['cid']))}} 
				{{else}}
					{{$cat['name']}}
				{{/if}}</td>
			{{if $key%5==4}} 
				</tr>
			{{/if}}
		{{/loop}}
		{{if $key%5!=4}} </tr>{{/if}}
	
	 -->
	</table>
	
</div>